Take into account modifications of the inner frame for has_extra_children.
authorXan Lopez <xan@src.gnome.org>
Wed, 26 Dec 2007 11:32:47 +0000 (11:32 +0000)
committerXan Lopez <xan@src.gnome.org>
Wed, 26 Dec 2007 11:32:47 +0000 (11:32 +0000)
svn path=/trunk/; revision=19245

gtk/gtkstatusbar.c

index e96cdc72615966f88f9b48c0439564e4f1114bf7..9fd215411eb1ee5ac1e87f16fa99754e5c97017c 100644 (file)
@@ -825,6 +825,10 @@ has_extra_children (GtkStatusbar *statusbar)
   GList *l;
   GtkBoxChild *child, *frame;
 
+  /* If the internal frame has been modified assume we have extra children */
+  if (gtk_bin_get_child (GTK_BIN (statusbar->frame)) != statusbar->label)
+    return TRUE;
+
   frame = NULL;
   for (l = GTK_BOX (statusbar)->children; l; l = l->next)
     {